Adds sort and refactors a bit
Truncates available users if already taken
Adds generated user email