adding form and validation