Adding model validations.