removed dublicated code in eap_authenticator