Consolidate register.php