Changes for login controller