On a regularity criterion for the solutions to the 3D Navier-Stokes equations