all functions fixed in users.php