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.
Merge pull request #125 from sromero84/master

Remove "account" bug in Middleware