added option for user to input password length