validate to valid