Add message check to length of validation

Adding the abliity to use with_message on the length of validation and pulling out common code to a module.