added the login and user registration