Refactored the register new book view to prepare for the edit book view.