adding validations to the bacbone model