fix signin issue
fix error jslint reported