add some constraints to the author model.