Adding some basic form validation to the register form. Much more to be added.