Adding the login system. If logged in as anonymous, the public view is shown. The admin view is not yet developed.