Added code behind on the front end master for the register button click.