condition AJAX log count on logging enabled
add some error trapping to update greetings script when no contact type is set