Unable to submit form and getting an errors