Register, Login and Logout implemented