Just changed a couple of queries to compare lowercase strings to each other to make login case insensitive.
Changed query to be case insensitive
Changed queries for other things referencing user name - should fix t…
…he issue of someone registering as NamE while Name exists
Made registration e-mail case insensitive. Could previously sign up w…
…ith firstname.lastname@example.org, followed by TEST@email.com without throwing an error