LoginController updated