record last login
more updates on roles refactoring