added validation of URL and numeric fields