Make login username case insensitive

Just changed a couple of queries to compare lowercase strings to each other to make login case insensitive.