fix to work with new login system, check for http status 302