Fixed a login bug