Added validations to build script