Small tweak to login
Added tracking mechanism