Added redirect when registration is successful