redirect to register.php
some tidy up