Without login cant use pages other than registration
Here is some basic validation for the register form
Once you login successfully, return the index page you can check the detail of the book(here is the simple link to book with id 1), and logout with the warning button