Added user registration and login