edit book image, validation middleware