Extracting out validations to it's own module.