edited show error if user don't select department when adding a book for sell