fixed a typo, unused variables.

$data -> $user