fix reload after login and register