Replace simplejson by json
Make redirects on login work