Go to different pages depending on login and register result.