Added controller for authentication.