Beginning to add login feature.

added lopin code to blog.py.