js validation with tooltips added