Fixed Redirect Bug in Registration Flow