adds password creation function