saving non-logged-in users and updating users on login