use flask-login plugin
modify logo position
correct some bugs