fixed some bad authentication redirects