Added Cancel feature to register and settings