checking for authenticated request.