I was able to fix this, after some trial and error. I renamed the plugins folder; and was able to login finally. The problem seemed to stem from some old plugins that were already disabled. I deleted textile1 and markdown, renamed the plugins folder again and all is back to normal!