Minor enhancement to the generateSecToken() function
Added email confirmation token generation