Fixed login-bug returning always '.' on error