Adding a clear method to user object.