Fixed login error bug