added password function (yet halfway)