better login js
better register js