adjusting register.php

adjusting code to new table format