bug fix login too many rows