solves problem with external login