Adds password generating function