Reworked user registration and login to be email based rather than username based