fix bug in login analytics tracking