created a function that resets user profile.