fixed problmes with alert window for checkName
fixed problmes with alert window for checkName