Replaced obsolete $matches variable with $username.