I figured it out by looking at the overlay example, I needed to access the state "username" instead of just using the username expression.