group url validating logic into a method
skip language changing url