Adding valid field to model