Server side validation for add book