Fix bug in Discuss links beyond page 1
Make email login case insensitive, fixing #34