Added trigger for logins