Refactored authentication controller and made some changes in responsive style