Adding validation for version number check