Form java script using validating