There are two ways to login to the same application and redirect to two different login pages respectively if failed.

Any solutions?