fixed ui and login bugs