fixed minor login bug