Added constraints to the models properties