It seems that custom Plesk login is hosted on a different IP/domain as the Plesk interface.
Edit your panel.ini file and add the following directive, Where example.com is an additional hostname used in the failure_redirect_url parameter.:
[security]
trustedRedirectHosts = example.com
Note: example.com can also be a IP or a wildcard such as *.example.com.