Refactor isUsernameValid() and isEmailValid()
Add login