edits to useridentity.php and user.php for authentication