Fixing login bug: dist