Refactor login&registration
Improve views; add #rootpopup