client & server validation on register form.