Validate when pressing Enter in URL text field