fixed bug on creating question, catches error when required field is left blank