Fixes login via external applications