make updateLastConnection part of the principal services and also do this on auth