Bug fixes in forms.
First steps towards form validation.