made form functional with validation

Signed-off-by: Dale Hurwitz <dale@bang.com.au>