Bugfixes redirects and authorization