Redirecting to /register when registration error