Added simple views for Login, Profile, and Question pages. Refactored controller code.