finished login scripts