minor fix on login controller