adding validations to the picture model