fix js for login
clear some code in test