Add localhost check and separate salts