Add basic validate for register