issue #3 fixed bug with submit form and validation