register, login and logout done