adding in simple js form validation