fixed double redirect when creating a new account