check if user was saved successfully to the database