added some basic validation to book and article