structure same as siteRegistration

Added reset and submit button
functions moved to seperate file.

Change this if you like. Not sure how you like to do this. Change name
too if you like.