Put login_required decorators in the right location (after app,route).