validations for question and answer added