fix for user login bug