@login_required fix
(only works if it's after the @app.route)