modify redirecting after registering