fixed user login bug