basic function tweaks in user.php