validRegister