Added password function