Did some Form validation with javascript