Add salt length check