Added the error messages to the controller and template

The form controller had to be changed to give scope
to the form elements and then check if the input was
empty to show the error message

Signed-off-by: Rob Simpson <rsimpson@lits-inc.com>