THE EASY WAY: The easy way out of this situation is to use iTunes to reset the password, however this works when done from the same computer which was used for last sync.
THE HARD WAY: This invariably erases everything on the device and installs the latest version of iOS.