add password function initially