Begin implementation of password function