Login Cancel button code

I think Every thing should close when cancel is clicked.
So I add this.