Completed function which validates authenticated requests