Login done

And some tweaks were made.