Update register.php

fixed bug