added controllers for login and registration