So my project requirements changed and now I think I need to build my own action filter.
So, this is my current login controller:
public class Login
Since your attribute is added to the FilterConfig, it will apply to ALL actions. So when you navigate to your MainPage/Default action it will be applying the filter and redirecting you to your MainPage/Default action (and so on...).
You will either need to: