cleaned code in PasswordPromptingCommand and preserving success/failure callbacks