iMaking the register and delete methods work