code review in register.php, improved validations. adding code to send email and generate transaction codes