Complete edit profile function for users.