Add Router and edit validation js