Add validation to form