Fixing password validation on register form.