Fixed saving into database even with mismatch passwords in registration.