fixing up a small login bug