Flaskr: Added Login Logout Validations
Flaskr: Refactored structure