initialize generate ID and password function