added login in controller