Added check to register Customer