#159, prevent clicking the url bar if the input is not valid