Add set password function