created login form class and template and implemented login, logout using flask-login