Updating user.php entity.
Fixing login success redirection.