fixed login error + Issue#57