Fix login trigger