Use Flask Principal and Flask-Login instead of own solutions