Added password generator function