ipod touch 4th generation can't connect to wifi
I have a ipod touch 4th generation 32gb version 6.1.6, that i have had for a little over 3 years. I still use it some mostly for music and few games, for the years ive had it it has worked perfectly fine then today as of 7/14/15 I get on it to update app, mess around on it and such. it work fine that morning and the previous day, but now when i turn it on and connect to the wifi it opens up safari with a screen that says
Log in
there is a webpage heading that reads <html><head><title><success</title><head><body>success</body></html>
nothing happens and i get disconnected from the wifi ,
i have tried powering it off the back on,
resetting the network settings
and even wiping the data and starting it new but it still brings up the same issue
What is going on and does anybody know how to fix this, ive included a screen shot
iPod touch (4th generation), iOS 6.1.6