working trigger after login