IMPROVEMENT - In some cicunstances the $_POST['task'] variable is sent empty (not a bug), so we added a validation to avoid another bug when this variable is empty