edit user profile implementation in controller