Added user registration and login/out