A bit of form validation

So that user doesn't skip any needed parameter