introduced query for user login