implemented password input