validate url before start browser activity.