Use the correct method for setting the current user

This ensures that various related constants are set correctly too.