Update register.php

adjusting code to new table format