Update user method. Fixed the api.php about update user part (make it response 200 too).