fixed minor syntax and validation errors