validates if the author has posts on destroy