input value verification + open link in new tab