modified LoginController