Remove "account" bug in Middleware

Apparently a bug introduced, raising an exception when "account" is in the path most probably won't let your login/logout urls work.