Added validation on the register form