Make login panel working. Add my own lib/utils folder for logics and split
the code from html.