Context
In LAYOUT, i got 2 input fields and submit button.
If user authentication is successfully, i want to redirect him somewhere,
if not - i want page to be updated with some validation text.
Problems
Cause widget is supposed to be located in layout, i dont know which is current page, therefore - can
t get back on failed authentication (even worse - i know nothing about page state (changed fields, selected items in checkboxes, etc.)).
I could save state doing partial request on login form submit, but then - how could i redirect user on successfully authentication without javascript hacks?