changed way of implementing static methods in CurrentUser