Fix authentication using salted passwords