Fix missing import uuid and LoginRequiredMixin class definition