validate all fields