Revert "Revert "Corrected is_logged method for model User""

This reverts commit de4a6f86fb0b462cf540478d2305841e6bacc890.