Register, login and logout user php mysql

Username :
Email :
Password :
Password again: