fix return query in view login makes login unable