Fixed a small login bug