changed user query in login