Form and validation code added