fixed validation of emails and urls