Sorted out safe redirects, regitering on threads page and added test.