user login bug fix