Added validation for the version provided