Added basic form checking for required fields
Added basic form checking