LoginController edited