submit-password-logic