validate and send form