Change order of the delete user function to log out first, then delete inside the anchor tag onclick