updated login template to include HTML form
added logout route
added logout link to main.html