implement javascript client-side sign-up validation