fixed weird login bugs, works a lot better now.