Follow these steps:
- Go to: File -> Settings -> Appearance & Behavior -> System settings -> HTTP Proxy
- Select Auto-detect proxy setting
- Click Clear password
- Click check connection and provide the URL: https://account.jetbrains.com/login
- Go to Help -> Register and login