[eluser]Pert[/eluser]
For each form, set a different controller or controller method as corresponding action.
In your example, I would expect login page to show me errors on dedicated login page, similar to when you are trying to log into Facebook, if password is wrong, you end on a page that has login form and not much else on it.
You can always capture "referral" either from _SERVER variable or dynamically set it as hidden variable and return to said page after successful login.