add basic required validation to parameters