store some vars
Fixed login system