Update admin login ui. Add more tests. Fix small errors.