Implemented authentication & authorization using Flask-Login and Werkzeug