Fix javascript handling of login; On lost focus, send post request to validate email uniqueness; make login case insensitive.