Create function to update user profile