fixed bug in registration redirecting to home without a template returned