I'm guessing you set a password on the home screen, a password, pattern or pin? If so, and the WiFi was on, trying to get in enough times would ask that you log onto your Google account and change your password.
If the WiFi was off, you have only one option I am aware of, a factory reset.