It was part of the project to allow it to not be explicitly tied to an email, and the username is needed for the account so I made it optional for login with either email or username