Added mailgun URL to configuration and also added test function for input field validation