change validate for register