Update user.php

Accidentally replaced by the wrong code. Now reverted to the original code