added the validate action