Cleaned up classRegister.php