uncomment authenticateRequest