fix user login bug