Fixed login script - sessions now created