use static files after login/logout middleware

Middleware order is important, this is done to redirect to login page if user is not authenticated. @gustavo-armenta consider to merge this PR. Thanks.