modified add_book to use form