controller linked to form
validation added to the form
css validation to improve UX