Added feature to cancel class when mistaken entry