Open a terminal and run the following commands:
sudo raspi-config Choose Interfacing Options -> Serial -> No -> Yes
You need to disable the login shell and enable the hardware serial
Reboot Raspberry Pi
sudo reboot