fixed minor errors. Added validation for editing question