fixed nilClass for non-logged-in users on current_user