Fixed login initial error on token creation.