Fixed a logout backl button crash bug, only took 4 intent flags
Add the flags on the delete function as well