check if passwords match before submitting the form