Added sign out link, fixed an issue with anonymous permissions.