fix bug of login controller