Minor form validation to prevent crashing