Defined requiresUser middleware