Fix login form.
Implement controls parsing.