major changes to user.php, putting in index.php format.2