Fixed an error within the salt logic, basicallt salt now defaults to null and is overriden by rand() if not set manually