Add debug prints to the authentication code.