Changed routing so that books#index is rendered after login, implemented access control for users with sessions