Make a case-insensitive lookup on email and username.

PostgreSQL comparisons are case-sensitive while other DB's are not.