handles password mismatch and saves email name