Updated registration code - unified the submit buttons