using callback to get totalpoints before rendering page
Updates points correctly on every page
Logs you in and displays total points properly