Add register js validation