Profile edit js validation