updating blog.py to check the credentials (username and password) input from a html form in login.html