I have changed the customer model so that it extends the User model.