add login js + take out console logs