Moved the helper methods that add users to session to a helper class.