Add form validation for required fields if static ip