Made the authentication controller