fix order of arguments
Merge pull request #1 from struiling/master

Fix order of arguments in user auth middleware