Improved Log IN/Out

Added the nonce on logout so it doesn't need a confirmation