API to update user profile