Update lib/user.php