added answer validation in GUI version