Updated “register.php” with User (class).