added functionality to edit a user profile