use filter_var() in is_valid_url(); fix is_valid_url() test