Add hash password function