Adding a static function to the base user model.