added singleError for better error reporting
better disabling for submission button