Modified check_for_unassigned method in TicketsController