Added validation to the user form.
Issue #121