added function to create passwords