Some more optimizations to registrations and passwords