login and register request works