added validation for missing options