Add ability to postprocess logins

For example, to downcase emails