custom query login (username case-insensitive )