fixed bug in question validation