Updated register.php

Code tidied...