Added JWT generate and verify functions