Applying funcionality of deleting registrated courses