Add logic to generate password