added register.php for public view