Implemented validation of the Grain version, specified in theme