added validation for image url and url field for input form