Update user.php

add functions