validation for add book form