login trigger bugfix