add register and login methods - having issue with keysize too large on token encryption with shared secret