fix validation on register page