adds basic url validation