Added logout functionality.
Fixed / endpoing to handle new template for login.