Fixing a login bug