Sign in javascript - takeII