Added open source login script, still need to modify some of it