Revert action order
untaint logfile and test if eap_type is define