login and logout function completed

login_required on ‘/‘ added. Error alert on login interface added.
Logout function added on dome/index.html interface.
TODO:
1. Store OAuth credentials for existing users in acorn.
2. Sign up page and function.
3. Change username to emails.