Typo fixes for $user->attributes

print_r($data) should be print_r($user->attributes)