If you were able to get to the login screen you can hold shift while clicking "restart". You can also try smashing Shift F8 at boot, which will work on some systems, but not on most newer systems;...