Maximal rank curves and singular points of the Hilbert scheme