adding validation to author model