fixed login bug
some fixes