Added controller to access login and profile pages