Error handling added to help work around undeveloped features
Added test case to form validation test