add validations

do you think creating a class makes more sense for the styles?