added validations to riddle