refining step 4 further into a function: authenticate_call_and_method