Fixed problem where $username was being overwritten with the cookie's value