ajaxs validtion working and model tests for checkDialogueName function