trying to fix login bug (untested as no IDE available!)