Fixed the salt issues and created a brand new  function to get it instead.