js validation is added