Fixed user login bug