Login function working.
tweaked a feature