Minor fixes into application_controller and users_controller