Added a login page and a little more functionality. Still getting the hang of Flask. So much of this is blatantly ripped code from https://github.com/jakecoffman/flask-tutorial/