modified JSP file, added validation of URL and numeric fields