separated js from html and debuged validate script error