fixing minor login bug