question creation validations server and client side