add salt check functionality