Using custom authentication queries - case sensitive usernames