Also, the username should be passed in to the function so we don't have to select it from the input field twice.