I think you also need to change this line to :username.