Fix user login bug