[login] improved code
rewrote pubinfo